# -*- coding:utf-8 -*-
"""MVonline1 URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path,re_path
from app1 import views

urlpatterns = [
    re_path('^static/.*$', views.static), # 静态目录
    path("", views.index ),  # 重定向
    path("favicon.ico", views.favicon), 
    path('admin', admin.site.urls),
    path('index', views.index),
    path('log_in', views.log_in),
    path('log_up', views.log_up),
    path('log_out', views.log_out),
    path('get_user', views.get_user),
    path('change_pwd', views.change_pwd),
    path('delete_user', views.delete_user),
    path('upload_file', views.upload_file),
    path('get_list', views.get_list),
    path('delete_file', views.delete_file),
    path('rename_file', views.rename_file),
    path('get_file_data', views.get_file_data),
    path('make_admin', views.make_admin),  # 修改用户管理员等级
    path("get_all_user", views.get_all_user), # 获取用户名
    path('vip_user', views.vip_user),  # 修改用户VIP等级
    path("get_image", views.get_image) , # 获取视频的封面
]
